import { forwardRef, Module } from '@nestjs/common';
import { RoleService } from './role.service';
import { RoleController } from './role.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Role } from '@/modules/system/role/entities/role.entity';
import { UserModule } from '@/modules/system/user/user.module';
import { UserRoleModule } from '@/modules/system/user-role/user-role.module';


@Module({
    imports: [
        TypeOrmModule.forFeature([Role]),
        forwardRef(() => UserModule),
        forwardRef(()=>UserRoleModule),
    ],
    controllers: [RoleController],
    providers: [RoleService],
    exports: [RoleService, TypeOrmModule],
})
export class RoleModule {
}
